Optimal. Leaf size=5 \[ -\sinh ^{-1}(\cot (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0140171, antiderivative size = 5, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {3657, 4122, 215} \[ -\sinh ^{-1}(\cot (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 4122
Rule 215
Rubi steps
\begin{align*} \int \sqrt{1+\cot ^2(x)} \, dx &=\int \sqrt{\csc ^2(x)} \, dx\\ &=-\operatorname{Subst}\left (\int \frac{1}{\sqrt{1+x^2}} \, dx,x,\cot (x)\right )\\ &=-\sinh ^{-1}(\cot (x))\\ \end{align*}
Mathematica [B] time = 0.0126543, size = 28, normalized size = 5.6 \[ \sin (x) \sqrt{\csc ^2(x)} \left (\log \left (\sin \left (\frac{x}{2}\right )\right )-\log \left (\cos \left (\frac{x}{2}\right )\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 6, normalized size = 1.2 \begin{align*} -{\it Arcsinh} \left ( \cot \left ( x \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.64863, size = 47, normalized size = 9.4 \begin{align*} -\frac{1}{2} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) + \frac{1}{2} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.85152, size = 163, normalized size = 32.6 \begin{align*} -\frac{1}{2} \, \log \left (\frac{1}{2} \, \sqrt{2} \sqrt{-\frac{1}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) + 1\right ) + \frac{1}{2} \, \log \left (-\frac{1}{2} \, \sqrt{2} \sqrt{-\frac{1}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\cot ^{2}{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24676, size = 14, normalized size = 2.8 \begin{align*} \log \left ({\left | \tan \left (\frac{1}{2} \, x\right ) \right |}\right ) \mathrm{sgn}\left (\sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]